package com.android.telephonecall.model;

import java.util.List;

public class MqttCallLogModel {

    /**
     * requestId : 消息唯一ID，UUID
     * timestamp : 消息发送时间，13长度时间戳
     * deviceId : 手机设备唯一ID
     * action : 执行的操作
     * param : {}
     */

    private String requestId;
    private String timestamp;
    private String deviceId;
    private String action;
    private List<ParamBean> params;

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public List<ParamBean> getParams() {
        return params;
    }

    public void setParams(List<ParamBean> params) {
        this.params = params;
    }

    public static class ParamBean {
        //通话记录上传: 实时同步通话状态给服务端，包括来电、拒接、挂断、挂起、呼出等操作时;

        private String recordId;                  //通话记录ID
        private String phoneNumber;               //通话号码
        private String phoneDuration;             //通话时长
        private String phoneDate;                 //通话时间
        private String phoneName;                 //联系人姓名
        private String phoneType;                 //通话类型

        public String getRecordId() {
            return recordId;
        }

        public void setRecordId(String recordId) {
            this.recordId = recordId;
        }

        public String getPhoneNumber() {
            return phoneNumber;
        }

        public void setPhoneNumber(String phoneNumber) {
            this.phoneNumber = phoneNumber;
        }

        public String getPhoneDuration() {
            return phoneDuration;
        }

        public void setPhoneDuration(String phoneDuration) {
            this.phoneDuration = phoneDuration;
        }

        public String getPhoneDate() {
            return phoneDate;
        }

        public void setPhoneDate(String phoneDate) {
            this.phoneDate = phoneDate;
        }

        public String getPhoneName() {
            return phoneName;
        }

        public void setPhoneName(String phoneName) {
            this.phoneName = phoneName;
        }

        public String getPhoneType() {
            return phoneType;
        }

        public void setPhoneType(String phoneType) {
            this.phoneType = phoneType;
        }

        @Override
        public String toString() {
            return "ParamBean{" +
                    "recordId='" + recordId + '\'' +
                    ", phoneNumber='" + phoneNumber + '\'' +
                    ", phoneDuration='" + phoneDuration + '\'' +
                    ", phoneDate='" + phoneDate + '\'' +
                    ", phoneName='" + phoneName + '\'' +
                    ", phoneType='" + phoneType + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "MqttCallLogModel{" +
                "requestId='" + requestId + '\'' +
                ", timestamp='" + timestamp + '\'' +
                ", deviceId='" + deviceId + '\'' +
                ", action='" + action + '\'' +
                ", params=" + params +
                '}';
    }
}
